package com.ts.movie.service.impl;

import com.ts.movie.entity.Movie;
import com.ts.movie.entity.MovieScore;
import com.ts.movie.mapper.MovieMapper;
import com.ts.movie.service.MovieService;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;


@Service
public class MovieServiceImpl extends ServiceImpl<MovieMapper, Movie> implements MovieService {

    @Override
    @Cacheable(cacheNames = "maoyan_movie", key = "'list'")
    public List<Movie> list() {
        log.debug("进来查询");
        return super.list();
    }

}